package com.guigu.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.guigu.pojo.ShopInfo;
import com.guigu.pojo.Users;
import com.guigu.pojo.WarehouseInfo;

import java.util.List;
import java.util.Map;

public interface WarehouseInfoService extends IService<WarehouseInfo> {
    Map addWarehouseInfo(WarehouseInfo warehouseInfo);

    Map checkWarehouseInfo(WarehouseInfo warehouseInfo);

    Page<WarehouseInfo> queryAllShops(WarehouseInfo warehouseInfo, Integer pageno, Integer pagesize);

    List<WarehouseInfo> assignWarehouseInfo(ShopInfo shopInfo);

    WarehouseInfo queryWarehouseInfoById(Integer id);

    WarehouseInfo queryWarehouseInfobyid(WarehouseInfo warehouseInfo);

    Map amendWarehouseInfo(WarehouseInfo warehouseInfo);

    Map querybyidUpdateWarehouseInfo(Integer id);

    Map querybywarname(WarehouseInfo warehouseInfo);

    //根据商品id查询总数量
    Map queryUpNumByShopId(Integer id);

    Page queryAllWarehouseInfo(WarehouseInfo warehouseInfo, Integer pageno, Integer pagesize);


}
